home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
music
/
5mods_4.arj
/
SPOT013D.MOD
< prev
Wrap
Text File
|
1994-01-20
|
8KB
|
265 lines
╓────────────────────────────────────────────────────────────────────────────╖
║ Mod Name : SPOT013D.MOD Mod Author: Spotnick 1@5497 WWIVnet ║█
║ Difficulty : █▒▒▒▒▒▒▒▒▒ 1@5497 WWIVlink ║█
║ WWIV Version : 4.23 1@5497 IceNET ║█
║ Mod Date : 01/06/93 1@5497 TerraNET ║█
║ Files Affected: MISCCMD.C 1@5497 RockNET ║█
║ Description : New BBSLIST For WWIV v4.23 ║█
╙────────────────────────────────────────────────────────────────────────────╜█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Hello folks, this is the 13th mod I released since v4.22, and it is now time
to go through 4.23 which I had the chance to beta test.
/* Long Description */
This adds a lot of features to your BBSLIST, idea has been stolen from
the Vision-X software, it will put your BBSlist in a box and ask more
informations about for it, check it out, much better than standard.
Revision D note:
There was a bug when user enter a data at full capacity, now it's fixed, this
should be the last revision I will do for that modification (I hope). Sorry
for all trouble, simply remplace the function or add 1 to each variable on
the 2 lines of chars.
Revision C note:
Seems like I forgot one of the up() functions, I was sure there was only one.
Revision B note:
I delete the name[0]=0; and I encourage you to do so, don't mind asking me why
I put that there, I'm on medication these days *Sigh*, this was clearing the
BBS name only a few times, still don't know why but... this is the only
change in this revision.
Step 1 and ONLY step in source code:
------------------------------------
Load MISCCMD.C and remplace void bbslist(void) with this new one
void bbslist(void)
{
int i,f,done,ok;
char s[150],s1[150],ch,ch1,*ss,s2[150],s3[81];
char phone[13], name[31], speed[6], type[11], meg[11], nup[11], group[11],
comment[31];
long l,l1;
done=0;
do {
helpl=0;
nl();
prt(3,get_string(489));
ch=onek("QRNA");
switch(ch) {
case 'Q':
done=1;
break;
case 'R':
printfile("BBSLIST.MSG");
if (okansi())
npr("\x1b[%dA",1);
pl("══════════════════════════════╧════════════╧══════════════╧════════");
break;
case 'N':
print_net_listing(0);
break;
case 'A':
helpl=25;
if ((actsl<=10)) {
nl();
nl();
pl(get_string(490));
nl();
break;
}
if (thisuser.restrict & restrict_automessage) {
nl();
nl();
pl(get_string(491));
nl();
break;
}
nl();
pl(get_string(492));
pl(get_string(493));
outstr(":");
mpl(12);
input(phone,12);
if ((phone[3]!='-') || (phone[7]!='-'))
phone[0]=0;
for (i=0; i<12; i++) {
if (strchr("0123456789-",phone[i])==0)
phone[0]=0;
}
if (strlen(phone)==12) {
ok=1;
sprintf(s1,"%sBBSLIST.MSG",syscfg.gfilesdir);
f=sh_open1(s1,O_RDONLY | O_BINARY);
if (f>0) {
sh_lseek(f,0L,SEEK_SET);
l=filelength(f);
if ((ss=malloca(l+500L))==NULL) {
sh_close(f);
return;
}
sh_read(f,ss,(int)l);
l1=0L;
while ((l1<l) && (ok)) {
i=0;
do {
ch=ss[l1++];
s1[i]=ch;
if (ch==13)
s1[i]=0;
++i;
} while ((ch!=10) && (i<120) && (l1<l));
if (strstr(s1,phone)!=NULL)
ok=0;
if (strncmp(s1,phone,12)==0)
ok=0;
}
farfree(ss);
sh_close(f);
}
if (ok) {
pl(get_string(494));
nl();
nl();
pl(get_string(495));
outstr(":");
mpl(30);
inputl(name,30);
nl();
pl(get_string(496));
pl(get_string(497));
outstr(":");
mpl(4);
input(speed,4);
nl();
pl(get_string(498));
outstr(":");
mpl(9);
input(type,9);
nl();
pl("How many hard disk space this BBS has?");
outstr(":");
mpl(10);
inputl(meg,10);
if (meg[0]==0)
strcpy(meg,"Unknown");
nl();
pl("What is the new user password?");
outstr(":");
mpl(10);
inputl(nup,10);
if (nup[0]==0)
strcpy(nup,"None");
nl();
pl("Enter Group Affiliations");
outstr(":");
mpl(10);
inputl(group,10);
if (group[0]==0)
strcpy(group,"None");
nl();
pl("Enter Comment About This BBS");
outstr(":");
mpl(30);
inputl(comment,30);
nl();
sprintf(s3,"══════════════════════════════╪════════════╪══════════════╪═══════
═\r\n");
sprintf(s,"%-30s│ %-10s │ %-12s │ %-5s\r\n",name, type, phone,
speed);
sprintf(s2,"%-30s│ %-10s │ %-12s │ %-5s\r\n",comment, meg, nup,
group);
nl();
nl();
pl(s);
if (okansi())
npr("\x1b[%dA",1);
pl(s2);
nl();
prt(9,get_string(499));
if (yn()) {
sprintf(s1,"%sBBSLIST.MSG",syscfg.gfilesdir);
f=sh_open(s1,O_RDWR | O_CREAT | O_BINARY, S_IREAD | S_IWRITE);
if (filelength(f)) {
sh_lseek(f,-1L,SEEK_END);
sh_read(f,((void *)&ch1),1);
if (ch1==26)
sh_lseek(f,-1L,SEEK_END);
}
sh_write(f,(void *)s3,strlen(s3));
sh_write(f,(void *)s,strlen(s));
sh_write(f,(void *)s2,strlen(s2));
sh_close(f);
nl();
pl(get_string(500));
}
} else {
pl(get_string(501));
nl();
nl();
}
} else {
nl();
pl(get_string(502));
nl();
}
break;
}
} while ((!done) && (!hangup));
}
Step 2:
Delete your old BBSLIST.MSG in Gfiles dir, and ask other people to re-enter
their datas in your new bbslist
Here is the attach file for header of the BBSLIST.MSG file, to explain how
to read the new BBSLIST:
Cut as BBSLIST.MSG and change to your BBS name please.
-------------------------------------------------------------------------
Alternative Worlds BBS Listing
══════════════════════════════╤════════════╤══════════════╤════════
BBS Name │ Software │ Phone Number │ Speed
Comment On BBS │ HD Space │ New User Pwd │ Group
══════════════════════════════╧════════════╧══════════════╧════════
══════════════════════════════╤════════════╤══════════════╤════════
-------------------------------------------------------------------------
Step 3:
Recompile and enjoy, I actually did a mod that not require to compile entire
BBS (thank me).
If you use this mod, let me know! I love to know who's using my mod and that
way you'll be informed of maybe new updates. Also, if you see this mod on my
system the color is very different I assure, but it's the same thing.
Hope you'll like it.
Where to reach me?
At all header's address, and through my bulletin board:
Alternative Worlds, Official WWIV Support Board, (514)-664-4503
From Montréal, Québec, Canada, Auto-SysOp Validation With No Ratio At 1st Call